package com.xuchaotong.feign.service;

import com.xuchaotong.feign.service.impl.UserServiceHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 311633
 * @version 1.0
 * @ClassName:
 * @Description:
 * @date 2017/11/3 18:22
 */
@FeignClient(value = "user-service", fallback = UserServiceHystrix.class)
public interface UserService {

    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    public String sayHi(@RequestParam(value = "name")String name);
}
